@white: #FFF;
@label-color: rgba(0, 0, 0, 0.3);
@currency-font: DINAlternate-Bold, DINAlternate, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
    'Segoe UI Emoji', 'Segoe UI Symbol';

.label {
    color: @label-color;
}

.currency {
    font-family: @currency-font;
    font-weight: bold;
}

.baseInfo {
    display: flex;
    // flex-wrap: nowrap;
    justify-content: space-between;
    padding: 16px 0;

    .baseInfoItem {
        // margin-top: 16px;
        // margin-bottom: 16px;

        span {
            font-size: 14px;
            color: rgba(0, 0, 0, 0.65);
            line-height: 22px;
            font-weight: 500;

            &.label {
                color: @label-color;
                font-weight: 400;
            }
        }

        &+.baseInfoItem {
            margin-left: 32px;
        }
    }
}

.content {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ededed;
    background: #fff;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.06);
    box-sizing: border-box;

    .captionBox {
        text-align: center;
        display: flex;
        margin-left: 4px;
        margin-right: 4px;

        .caption {
            padding-top: 12px;
            padding-bottom: 12px;
            margin-left: 4px;
            margin-right: 4px;
            font-size: 16px;
            font-weight: 500;
            border-bottom: 2px solid;
            flex: 1;

            &.positive {
                color: #44c69d;
                border-bottom-color: #44c69d;
            }

            &.negative {
                color: #ff5959;
                border-bottom-color: #ff5959;
            }
        }
    }

    .header {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;

        .label,
        .currency {
            display: block;
        }

        .currency {
            font-size: 24px
        }

        .left,
        .right {
            width: 50%;
            overflow: hidden;
            box-sizing: border-box;
        }

        >.left,
        >.right {
            width: 50%;
            padding-top: 14px;
            padding-bottom: 5px;
            overflow: hidden;
            margin-left: 8px;
            margin-right: 8px;
            background: linear-gradient(180deg, #FAFAFA 0%, @white 100%);
        }

        >.left,
        >.right>* {
            padding-left: 53px;
        }

        >.left {
            margin-left: 8px;
            margin-right: 4px;
        }

        >.right {
            margin-left: 4px;
            margin-right: 8px;
            display: flex;
        }
    }

    .headerSingapore {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;

        .label,
        .currency {
            display: block;
        }

        .currency {
            font-size: 24px
        }

        .left,
        .right {
            flex: 1;
            overflow: hidden;
            box-sizing: border-box;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        >.left,
        >.right {
            flex: 1;
            padding-top: 14px;
            padding-bottom: 5px;
            overflow: hidden;
            background: linear-gradient(180deg, #FAFAFA 0%, @white 100%);
        }

    }

    .contentDetail {
        margin-top: 16px;
        position: relative;
        display: flex;
        justify-content: space-between;
        flex-wrap: nowrap;

        .line {
            height: auto;
            width: 1px;
            background: #ededed;
        }

        .dataWrap {
            padding-bottom: 40px;
            padding-right: 8px;
            padding-left: 8px;

            .dataDetail {
                padding: 0 42px 8px 53px;
                border-bottom: 1px solid #ededed;

                .itemWrap:last-child {
                    padding-bottom: 24px;
                }

                .itemWrap {
                    padding-bottom: 24px;

                    .itemSum,
                    .itemDetail {
                        display: flex;
                        align-items: center;
                        justify-content: space-between;
                        color: #333;
                    }

                    .itemSum {
                        background: rgba(0, 0, 0, 0.02);
                        border-radius: 4px;
                        padding-left: 8px;
                        padding-right: 8px;
                        line-height: 30px;

                        .itemSumTitle {
                            font-size: 14px;
                            font-weight: 500;
                            color: rgba(0, 0, 0, 0.65);
                        }

                        .currency {
                            font-size: 18px;
                        }
                    }

                    .itemDetail {
                        padding-left: 21px;
                        padding-right: 8px;
                        margin-top: 12px;
                        color: rgba(0, 0, 0, 0.45);

                        .label {
                            font-size: 13px;
                        }

                        .currency {
                            font-size: 16px;
                        }
                    }
                }
            }

            .sumMoney {
                padding: 8px 50px 0 0;
                line-height: 22px;
                text-align: right;

                .label {
                    font-size: 14px;
                    font-weight: 500;
                }

                .currency {
                    font-size: 18px;
                }
            }
        }

        .contentLeft,
        .contentRight {
            width: 50%;
        }

        .contentLeft {
            .dataWrap.empty {
                display: flex;
                flex-direction: column;
                height: 100%;

                .dataDetail {
                    flex: 1;

                    :global {
                        .ant-empty {
                            position: relative;
                            top: 50%;
                            left: 50%;
                            margin-top: 0;
                            margin-bottom: 0;
                            transform: translateX(-50%) translateY(-50%);
                        }
                    }
                }
            }
        }
    }
}

.salarySheetHint {
    color: #ff4949;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
    padding-left: 8px;
}

.flexWrap {
    display: flex;
    justify-content: flex-start;
}
